export default [
  {
    type: 'radio-button',
    label: '是否赠送经验值',
    options: [
      { label: '是', value: 1 },
      { label: '否', value: 0 },
    ],
    valueKey: 'isExp',
    defaultValue: 1,
  },
  { type: 'input-number', label: '赠送经验值', hidden: 'modelForm =_| modelForm.isExp == 0', valueKey: 'exp', defaultValue: 100 },
  {
    type: 'radio-button',
    label: '是否赠送积分',
    options: [
      { label: '是', value: 1 },
      { label: '否', value: 0 },
    ],
    valueKey: 'isIntegral',
    defaultValue: 1,
  },
  { type: 'input-number', label: '赠送积分', hidden: 'modelForm =_| modelForm.isIntegral == 0', valueKey: 'integral', defaultValue: 10 },
  {
    type: 'custom',
    label: '连续签到设置',
    valueKey: 'seriesList',
    component: 'SignList',
    defaultValue: [
      { day: 2, exp: 100, isExp: 1, integral: 20, isIntegral: 1 },
      { day: 3, exp: 300, isExp: 1, integral: 30, isIntegral: 1 },
    ],
    formItemProps: { contentFlex: false },
  },
]
